package com.polaris.live.dialog

import android.content.Context
import com.lxj.xpopup.core.CenterPopupView
import com.polaris.live.R
import com.polaris.live.common.ext.setOnSingleClickListener
import com.polaris.live.databinding.DialogCivilizationBinding

/**
 * 平台文明公约
 *
 * @author Created by 半仙 on 2023/11/30/030 11:33
 */
class CivilizationDialog(context: Context) : CenterPopupView(context) {

    private lateinit var mBinding: DialogCivilizationBinding

    override fun getImplLayoutId(): Int {
        return R.layout.dialog_civilization
    }

    override fun onCreate() {
        super.onCreate()
        mBinding = DialogCivilizationBinding.bind(popupImplView)
        mBinding.close.setOnSingleClickListener {
            dismiss()
        }
    }

}